package com.wsk.bean;

import javax.persistence.*;

@Entity(name="userpassword")
public class UserPassword {
	@Id
	private Integer id;
	
	@Column(length=20,nullable=false)
	private String password;
	
	@OneToOne
	@PrimaryKeyJoinColumn
	private UserInformation userInformation;

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public UserInformation getUserInformation() {
		return userInformation;
	}

	public void setUserInformation(UserInformation userInformation) {
		this.userInformation = userInformation;
	}
}
